package com.samphanie.ane.core.service;

import lombok.extern.slf4j.Slf4j;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsPasswordService;
import org.springframework.security.core.userdetails.UsernameNotFoundException;

/**
 * @Description:
 * @Author ZSY
 * @createTime 2021/3/12 11:50
 */
@Slf4j
public class DefaultUserDetailsPasswordService implements UserDetailsPasswordService {
    @Override
    public UserDetails updatePassword(UserDetails userDetails, String newPassword) {
        log.warn("请配置 UserDetailsPasswordService 接口的实现.");
        throw new UsernameNotFoundException(userDetails.getUsername());
    }
}
